package com.we823.project.repository.service.sys;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.we823.project.model.sys.CalculateModel;
import com.we823.project.repository.dao.sys.CalculateRepository;
import com.we823.project.repository.service.AbstractBaseService;

@Service("calculateService")
public class CalculateService extends AbstractBaseService<CalculateModel> {

	private CalculateRepository calculateRepository;
	
	@Autowired
	public CalculateService(CalculateRepository calculateRepository) {
		super(calculateRepository);
		this.calculateRepository = calculateRepository;
	}

	public CalculateModel findByCode(String code){
		return calculateRepository.findByCode(code);
	}
}
